package club.babyf.nativeai.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * NativeAiProperties.
 *
 * @author zhanglei.
 * @date 2025/2/17 17:32.
 * @description 原生ai配置.
 */
@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "native.ai")
public class NativeAiProperties {

    /**
     * openai配置
     */
    private openai openai = new openai();

    @Getter
    @Setter
    public static class openai {

        /**
         * apiKey
         */
        private String apiKey;

        /**
         * baseUrl
         */
        private String baseUrl;

        /**
         * 向量模型名称
         */
        private String embeddingModel;

        /**
         * 超时时间（秒）
         */
        private int timeoutSec;

    }

}
